<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
import Edit from "./../edit/index"
export default {
  mixins: [
    Vue.prototype.$vFN.Mixins.Base,
    Vue.prototype.$vFN.Mixins.Page,
    Vue.prototype.$vFN.Mixins.Table,
  ],
  data() {
    return {
      appWindow: window,
      // 页面接口地址
      apiUrl: {
        list: "plugin/team-dividend/admin/withdraw/list",
        delete: "plugin/team-dividend/admin/member/destroy",
      },
      // 表格查询数据
      mixinTable_tableSearchData: {},
      // 列表高级查询参数
      mixinTable_tableSearchSenior: {
        // 订单审核状态
        audit_status: {
          type: Number,
          value: 1,
          default: 0,
        },
        // 等级
        level_id: {
          type: Number,
          value: "",
          default: 0,
        },

      },
      options: []
    };
  },
  methods: {
    batchExamine() {
      let ids = [];
      this.mixinTable_selectTableData.forEach(item => {
        ids.push(item.id);
      });
      Edit.init({
        id: ids,
        onSuccess: () => {
          this.mixinTable_refreshData()
        }
      });
    },
    async examine(params_) {
      Edit.init({
        id: [params_.id],
        onSuccess: () => {
          this.mixinTable_refreshData()
        }
      });
    },
    statusChange() {
      this.mixinTable_refreshData();
    },
    async getdata() {
      let res = await this.$vFN.Http.post({
        url: "plugin/team-dividend/admin/withdraw/levelDropList",
      },window);
      this.options = res.data
    }, 
    // 初始化
    async init() {
      this.getdata();
      this.mixinTable_refreshData();
    },
  },
  mounted() {
    this.init();
  },
  activated() {},
};
</script>